package com.swas.entity;

import java.io.Serializable;

/**
 * plan_point
 * @author 
 */
public class PlanPoint implements Serializable {
    private Integer id;

    private Integer planid;

    private Integer pointid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPlanid() {
        return planid;
    }

    public void setPlanid(Integer planid) {
        this.planid = planid;
    }

    public Integer getPointid() {
        return pointid;
    }

    public void setPointid(Integer pointid) {
        this.pointid = pointid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PlanPoint other = (PlanPoint) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPlanid() == null ? other.getPlanid() == null : this.getPlanid().equals(other.getPlanid()))
            && (this.getPointid() == null ? other.getPointid() == null : this.getPointid().equals(other.getPointid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPlanid() == null) ? 0 : getPlanid().hashCode());
        result = prime * result + ((getPointid() == null) ? 0 : getPointid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", planid=").append(planid);
        sb.append(", pointid=").append(pointid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}